<template>
  <div class="card">
    <el-card shadow="hover">
      <div class="container">
        <div class="cardLeft" :style="{backgroundColor: obj.outerBack || '#e4ecff'}">
          <div class="cardCir" :style="{backgroundColor: obj.InnerBack || '#4d7cfe'}">
            <i :class="obj.icon || 'el-icon-s-order'" style="color: #fff;font-size: 20px;"></i>
          </div>
        </div>
        <div class="cardRight">
          <div class="num">{{obj.num || 0}}</div>
          <div class="title">{{obj.title || ''}}</div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: '',
  props: {
    obj: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" scope>
  .card {
    width: 100%;
    .container {
      display: flex;
      align-items: center;
      .cardLeft {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px;
        .cardCir {
          width: 48px;
          height: 48px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
      .cardRight {
        .num {
          display: block;
          font-size: 24px;
          line-height: 36px;
          color: #252631;
        }
        .title {
          display: block;
          color: #98a9bc;
          font-size: 12px;
        }
      }
    }
  }
</style>
